﻿
@{
    ViewData["Title"] = "重复数据检索清除";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Head{
    <link href="~/layuiadmin/style/style.css" rel="stylesheet" />
    <style>
        .layui-btn-container {
            margin: 0 !important;
        }

        .bar-main input {
            width: 80px;
            height: 30px;
            display: inline-block;
        }

        .bar-main .layui-btn {
            margin-top: -3px;
            margin-right: 0;
        }
    </style>
}

<div id="dMain" style="padding:10px;">
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-header">重复数据检索清除</div>
            <div class="layui-card-body">
                <table class="layui-hide" id="tabData"></table>
            </div>
        </div>
    </div>
</div>

<script>
    window.onload = function () {
        layui.use('table', function () {
            var table = layui.table;

            table.render({
                elem: '#tabData',
                url: '',
                page: {
                    layout: ['prev', 'page', 'next', 'skip', 'count']
                },
                height: 590,
                toolbar: '#toolbarDemo', //开启头部工具栏，并为其绑定左侧模板
                cols:
                    [
                        [
                            { type: 'checkbox' },
                            { field: 'FileNo', title: '档号', sort: true },
                            { field: 'FType', width: 100, title: '机构', sort: true },
                            { field: 'FYear', width: 100, title: '年度', sort: true },
                            { field: 'FTerm', width: 100, title: '期限', sort: true },
                            { field: 'FRef', title: '案卷/盒号', width: 120, sort: true },
                            { field: 'BookNum', title: '件号', width: 80, sort: true }
                        ]
                    ],
                text: {
                    none: '没有找到匹配的记录'
                },
                data: [{
                    "FileNo": "SS-2019-1-00001",
                    "FType": "刑事诉讼",
                    "FYear": "2019",
                    "FTerm": "永久",
                    "FRef": "1",
                    "BookNum": "1",
                }]
            });
        });
    }
</script>

<script type="text/html" id="toolbarDemo">
    <div class="MenuManager-title"></div>
    <div class="layui-btn-container">
        <div class="bar-main">
            <input type="text" class="layui-input" id="year1" />
            <label style="font-size: 12px;color: #555;">至</label>
            <input type="text" class="layui-input" id="year2" />
            <a class="layui-btn layui-btn-sm" lay-event="GetSearch">查询</a>
            <a class="layui-btn layui-btn-sm" lay-event="DelData">删除数据</a>
        </div>
    </div>
    <div class="layui-inline layui-inline-secate">
        <input class="layui-input" name="id" id="test-table-demoReload" autocomplete="off" placeholder="搜索" data-type="reload">
    </div>
</script>